<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, minimal-ui">
		<link href="resources/css/mui.min.css" rel="stylesheet" />
		<link href="resources/css/common1.css" rel="stylesheet" />
		<link href="resources/css/swiper.css" rel="stylesheet" />
		<script src="resources/js/swiper.js"></script>
		<script src="resources/js/jquery-1.10.1.min.js"></script>
		<script src="resources/js/WebViewJavascriptBridge.js"></script>
		<script src="resources/js/common.js"></script>
		<script src="resources/js/vue.min.js"></script>
		<title>超贷-详情</title>
		<style>
			body, html{background-color: #FFFFFF;}
			.mui-bar{background-color: #2487ff; }
			a:active{color: #fff;}
			.mui-title{color: #fff;}
			.ellipsis2{height: auto; line-height: 18px; font-size: 14px;width: 100%; font-weight: 600; }
			.listUl{width: 100%; padding: 10px; background-color: #FFFFFF; }
			.liList{position: relative; padding: 10px 0px; margin-bottom: 10px; border-bottom:1px solid #EFEFEF;}
			.liListTit{width: 100%;}
			.liListImg{width: 70px; max-height: 60px; position: absolute; right: 0px; top:10px;}
			.bannerTit{margin-top: -22px; width: calc(100% - 80px);overflow: hidden;text-overflow:ellipsis;white-space: nowrap; position: absolute; padding-left: 10px; z-index: 9;  color: #FFFFFF;}
			.newTit2{ margin-top: 6px; margin-bottom: 0px;}
			.newTit2 span{margin-right: 15px; }
		</style>
	</head>

	<body>
	<div id="app">
		<header id="header" class="mui-bar mui-bar-nav">
			<a id="toBack1"  href="javascript:;" onclick="closePage();"  class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left colorf"></a>
			<h1 class="mui-title">详情</h1>
		</header>
		<div class="headerTop"></div>
		
		<div class="mui-content">
			<ul class="listUl">
				<li class="liList" >
					<a href="javascript:;">
						<div class="liListTit">
							<div class='ellipsis2'>{{noticeDetail.title}}</div>
							<p class='newTit2'><span class="color4">{{noticeDetail.timeCreatedStr}}</span><span class="color4">{{noticeDetail.viewCount}}浏览</span></p>
						</div>
						
					</a>
				</li>
				<li v-html="noticeDetail.content"></li>
			</ul>
		</div>
		
		<!-- <div class="mui-row tabBarBox" >
			<li class="fontS14" onclick="tabBar1()">
                <img src="resources/images/tab-bar1.png"> <br> 首页
	        </li>
  	        <li class="fontS14" onclick="tabBar2()">
                <img src="resources/images/tab-bar2.png"> <br>贷款
	        </li>
	        <li class="active fontS14" onclick="tabBar3()">
	            <img src="resources/images/tab-bar31.png">  <br>社区
	        </li>
			<li class="fontS14" onclick="tabBar4()">
                <img src="resources/images/tab-bar4.png"> <br>我的
			</li>
			
		</div>
		<div class="tabBarBottom"></div> -->
		</div>	
		<script>
		   var typeId = GetQueryString("id");  //区分新人专享、热门推荐、新品推荐
		   var uid = window.localStorage.uid;
		 //调接口必传 格式
			 var header={
			     	app_version:'1.1.1',
			     	app_model:'ios',
			     	token:'066995456465562'
			     }
			 
			 	var body= "";
			 	var model ="";
			 	var jdata="";	
			 	body={
			 		id:typeId,
			 		uid:uid
			    }
				var vm = new Vue({
				el : '#app',
				data : {
					noticeDetail:{}
				},
				created : function() {
					this.init();
				},
				methods : {
					init : function(){
						model={
					    	body:body,
					    	header:header,
					    }
					    jdata=JSON.stringify(model);
						var that=this;
						$.ajax({
							url: 'notice/viewNotice',
							method: 'get',
							data:{
								'data':jdata
							},
							success: function(data){
								var json=JSON.parse(data);
								that.noticeDetail = json.data; 
							},
							error: function(){
								/* alert("数据加载异常!"); */
							}
						});
					},
				},
				filters : {
					
				}
			})
			    
			  
		</script>		
	</body>

</html>